package com.tz.entity;

import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/1/6.
 */
@Component
public class CPU {

    private Long id;

    private String brand; //品牌

    private double frequency; //频率

    public CPU() {
    }

    public CPU(Long id, String brand, double frequency) {
        this.id = id;
        this.brand = brand;
        this.frequency = frequency;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getFrequency() {
        return frequency;
    }

    public void setFrequency(double frequency) {
        this.frequency = frequency;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CPU{");
        sb.append("id=").append(id);
        sb.append(", brand='").append(brand).append('\'');
        sb.append(", frequency=").append(frequency);
        sb.append('}');
        return sb.toString();
    }
}
